package com.bkfm.framework.wf.api.service;

import org.yak.core.service.IBaseService;

import com.bkfm.framework.wf.entity.BkfmWorkFlow;

public interface IWorkFlowService extends IBaseService<BkfmWorkFlow> {

	/**
	 * 查询流程信息
	 * @param bkfmWorkFlow
	 * @return
	 * @throws Exception
	 */
	public BkfmWorkFlow queryWorkFlow(BkfmWorkFlow bkfmWorkFlow)throws Exception;
	
	/**
	 * 保存流程
	 * @param bkfmWorkFlow
	 * @throws Exception
	 */
	public void saveWorkFlow(BkfmWorkFlow bkfmWorkFlow)throws Exception;
	
	/**
	 * 部署流程
	 * @param bkfmWorkFlow
	 * @throws Exception
	 */
	public void deployWorkFlow(BkfmWorkFlow bkfmWorkFlow)throws Exception;
	
	/**
	 * 更新已部署的流程
	 * @param bkfmWorkFlow
	 * @throws Exception
	 */
	public void updateDeployWorkFlow(BkfmWorkFlow bkfmWorkFlow)throws Exception;
}
